from django.urls import path,re_path
from apps.web import views
urlpatterns = [
    path('home/',views.home),
    path('news/<int:nid>/',views.news),#动态网址，整型
    path('article/',views.article),
    path('comment/<str:year>',views.comment),  #字符串，不包含/，path支持路径/
    path('party/<slug:member>',views.party),#数字+字母+下划线+-
    re_path(r'users/(\d+)/',views.users),
    re_path(r'account/(\w+)/',views.account),
    re_path(r'video/(\w+-\d+)/',views.video),
    re_path(r'audio/(\w+-\d+)/(\d+)/',views.audio),
    re_path(r'recoder/(?P<xxid>\w+-\d+)/(?P<yyid>\d+)/',views.recoder),
    path('auth/',views.auth),
]